package com.liupf.common.utils;

public class MoneyCount {
	public static float countFee(float ic, float totalfee) {
		if (ic > 20000) {
			return totalfee * 0.2f;
		} else if (ic > 15000) {
			return totalfee * 0.22f;
		} else if (ic > 10000) {
			return totalfee * 0.24f;
		} else if (ic > 5000) {
			return totalfee * 0.26f;
		} else if (ic > 1000) {
			return totalfee * 0.28f;
		} else {
			return totalfee * 0.3f;
		}
	}

	public static int countProportion(float ic) {
		if (ic > 20000) {
			return 20;
		} else if (ic > 15000) {
			return 22;
		} else if (ic > 10000) {
			return 24;
		} else if (ic > 5000) {
			return 26;
		} else if (ic > 1000) {
			return 28;
		} else {
			return 30;
		}
	}
}
